package com.ruoyi.celoan.request;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.ruoyi.celoan.entity.ExTradeEffectCreditserviceagenciesDetailEntity;
import com.xmsme.base.sdk.request.HttpMethod;
import com.xmsme.base.sdk.JsonMapper;
import com.xmsme.base.sdk.request.AbstractApiRequest;
import com.xmsme.base.sdk.request.EncryptRequest;
import com.xmsme.base.sdk.response.StatisticsPostResponse;

import java.util.List;

public class ExTradeEffectCreditserviceagenciesDetailRequest extends AbstractApiRequest<StatisticsPostResponse> implements EncryptRequest {
    private List<ExTradeEffectCreditserviceagenciesDetailEntity> statistics;

    public ExTradeEffectCreditserviceagenciesDetailRequest(List<ExTradeEffectCreditserviceagenciesDetailEntity> statistics) {
        super("信用服务机构信息回传接口", "/api/upload/creditServiceAgencies", HttpMethod.POST);
        this.statistics = statistics;
    }

    public String getParams() throws JsonProcessingException {
        System.out.println("上传参数::::::" + JsonMapper.get().writeValueAsString(this.statistics));
        return JsonMapper.get().writeValueAsString(this.statistics);
    }

    public Class<StatisticsPostResponse> getResponseClass() {
        return StatisticsPostResponse.class;
    }
}


/* Location:              D:\tuodayun\workspace\work\celoan-third-data-report-service-2.0.0-SNAPSHOT.jar!\BOOT-INF\classes\com\celoan\request\ExTradeEffectCreditserviceagenciesDetailRequest.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */
